package com.test.demo;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.myprojectoffeixue.R;

public class CreateQRcodeActivity extends Activity{
	private Button bt_back;
	private ImageView img_qrcode;

	/**
	 * �����ݽ�����phone��Ϣ,���ɶ�ά��
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.frag3_showqrcode);
		
		bt_back = (Button) findViewById(R.id.btn_back);
		img_qrcode = (ImageView) findViewById(R.id.img_qrcode);
		
		Bundle bundle = getIntent().getExtras();
		String phone = bundle.getString("phone");
		
		CreateQRImageTest.createQRImage(phone,img_qrcode);
		
		bt_back.setOnClickListener(new OnClickListener() {
			/**
			 * ���·��ؼ�,������activity
			 */
			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}
}
